home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / urt / amiga_extras / getami / makefile.sc < prev    next >
Encoding:
Makefile  |  1993-12-22  |  1.9 KB  |  73 lines

  1. #
  2. # Makefile for use with Lattice C
  3. #
  4. CC = sc
  5. STARTUP=LIB:c.o
  6. # Optimization on a standard Amiga
  7. #DEBUG = OPTIMIZE
  8. # Optimization on a an amiga witha 68040 or 68882
  9. DEBUG = OPTIMIZE OPTSCHED
  10. LINKDBG = ND
  11. #
  12. # Use these settings on a standard Amiga.
  13. #
  14. # CFLAGS = CPU=ANY NOSTKCHK MATH=IEEE DATA=AUTO STRMERGE IGNORE=100 $(DEBUG)
  15. # MATHLIB = LIB:scmieee.lib
  16. #
  17. # use these settings on an Amiga with a 68040
  18. #
  19. CFLAGS = CPU=68040 NOSTKCHK MATH=68882 DATA=AUTO STRMERGE IGNORE=100 $(DEBUG)
  20. MATHLIB = LIB:scm881.lib
  21. #
  22. # if you have getopt and qsort in a library, declare it in SUPLIB
  23. #
  24. SUPLIB = LIB:unix.lib
  25. # SAS/C added a mktemp() routine in version 6.50. If you are using an older
  26. # version, add mktemp.o here
  27. # SUPPORT = mktemp.o
  28. SUPPORT =
  29. #
  30. # else declare SUPLIB as empty, and add the appropriate .o files in SUPPORT
  31. # (alloca.o is only needed if you use the GNU getopt)
  32. #
  33. # SUPLIB =
  34. # SUPPORT = mktemp.o qsort.o getopt.o alloca.o
  35. #
  36. # Override certain library functions with home-made, smaller ones. Their only
  37. # purpose is to make executables smaller, so you don't really need them. If you
  38. # have something equivalent, declare it here. GDEF is for getami, and SDEF is
  39. # for show3.
  40. #
  41. #GDEF = DEFINE ___main=___nowbmain
  42. #SDEF = DEFINE ___main=___nowbmain
  43. GDEF =
  44. SDEF =
  45. #
  46. # ".o" files and libraries required to build getami
  47. #
  48. GOBJ = getami.o IsPAL.o plot.o $(SUPPORT)
  49. GLIBS = LIB:rle.lib $(MATHLIB) $(SUPLIB) LIB:sc.lib
  50. #
  51. # ".o" files and libraries required to build show3.
  52. #
  53. SOBJ = show3.o IsPAL.o
  54. SLIBS = $(SUPLIB) LIB:sc.lib
  55.  
  56. all: getami show3
  57.  
  58. getami: $(GOBJ)
  59.     slink FROM $(STARTUP) $(GOBJ) TO getami SC SD NOICONS $(LINKDBG)\
  60.     $(GDEF) LIB $(GLIBS)
  61.  
  62. show3: $(SOBJ)
  63.     slink FROM $(STARTUP) $(SOBJ) TO show3 SC SD NOICONS $(LINKDBG)\
  64.     $(SDEF) LIB $(SLIBS)
  65.  
  66. # A68k produces more compact code. If you want to use asm, uncomment the
  67. # csect directive in plot.asm
  68. plot.o: plot.asm
  69.     asm -iinclude: -oplot.o plot.asm
  70.  
  71. clean:
  72.     delete \#?.o getami show3 QUIET
  73.